home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 8 / developer source - volume 8.iso / dobbs / sep96 / sitaf101.gif < prev    next >
Graphics Interchange Format  |  1997-01-15  |  46.9 KB  |  456x333  |  4-bit (16 colors)
   ocr: Starting array ofN elements in memory. * Nelements After one: append, 2N+1 elements of memory are required. A fragment of N elements iS created. à - fragment=N * N+1 elements - After tWo appends, 3N+2 elements of memory: are required. The previous fragment ofl N elements iS too small to: use. fragment-2N+1 N+2 olements Atter three appends, the fragment is finally reclaimed by the N+3 elements: N+3 elements Figure 1: Memor usage during arry resizing.